/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.dqsy.alk.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.service.TreeService;
import com.jeeplus.common.utils.StringUtils;
import com.jeeplus.modules.dqsy.alk.entity.AtLeftTree;
import com.jeeplus.modules.dqsy.alk.mapper.AtLeftTreeMapper;

/**
 * alkService
 * @author zty
 * @version 2020-09-17
 */
@Service
@Transactional(readOnly = true)
public class AtLeftTreeService extends TreeService<AtLeftTreeMapper, AtLeftTree> {

	public AtLeftTree get(String id) {
		return super.get(id);
	}
	
	public List<AtLeftTree> findList(AtLeftTree atLeftTree) {
		if (StringUtils.isNotBlank(atLeftTree.getParentIds())){
			atLeftTree.setParentIds(","+atLeftTree.getParentIds()+",");
		}
		return super.findList(atLeftTree);
	}
	
	@Transactional(readOnly = false)
	public void save(AtLeftTree atLeftTree) {
		super.save(atLeftTree);
	}
	
	@Transactional(readOnly = false)
	public void delete(AtLeftTree atLeftTree) {
		super.delete(atLeftTree);
	}
	
}